package com.kayo.specimen.dao;

import com.kayo.specimen.model.Privilege;
import com.kayo.specimen.model.RolePrivilege;
import com.kayo.specimen.model.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePrivilegeMapper {
    public List<RolePrivilege> select(@Param("roleId") String roleId);

    public int insert(RolePrivilege... rolePrivilege);

    public int update(RolePrivilege... rolePrivilege);

    public int delete(String... rolePrivileges);

    public int delete(@Param("roleId") String roleId, @Param("privilegeId") String privilegeId);

    public List<Privilege> getPrivileges(@Param("roleId")String roleId);
}
